<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			margin: 20px auto;
			width: 200px;
			height: 200px;
			display: flex;
			flex-wrap: wrap;
			animation: amt 1s linear 1s infinite reverse;
		}
		.box>div{
			width: 0px;
			height: 0px;
			border-top: 50px solid transparent;
			border-right: 50px solid red;
			border-bottom: 50px solid transparent;
			border-left: 50px solid transparent;
		}
/*		.box>div:nth-of-type(1){
			border-top: 50px solid transparent;
			border-right: 50px solid red;
			border-bottom: 50px solid transparent;
			border-left: 50px solid transparent;
		}*/
		.box>div:nth-of-type(2){
			border-top: 50px solid transparent;
			border-right: 50px solid transparent;
			border-bottom: 50px solid blue;
			border-left: 50px solid transparent;
		}
		.box>div:nth-of-type(3){
			border-top: 50px solid yellow;
			border-right: 50px solid transparent;
			border-bottom: 50px solid transparent;
			border-left: 50px solid transparent;
		}
		.box>div:nth-of-type(4){
			border-top: 50px solid transparent;
			border-right: 50px solid transparent;
			border-bottom: 50px solid transparent;
			border-left: 50px solid green;
		}
		@keyframes amt{
			0%{
				transform: rotate(0deg);
			}
			100%{
				transform: rotate(360deg);
			}
		}

	</style>

</head>
<body>
	<div class="box">
		<div class="one"></div>
		<div class="two"></div>
		<div class="thrre"></div>
		<div class="four"></div>
	</div>
</body>
</html>